package com.bysj.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.bysj.system.mapper.CollectHouseMapper;
import com.bysj.system.domain.CollectHouse;
import com.bysj.system.service.ICollectHouseService;

/**
 * 房源收藏Service业务层处理
 * 
 * @author bysj
 * @date 2024-02-03
 */
@Service
public class CollectHouseServiceImpl implements ICollectHouseService 
{
    @Autowired
    private CollectHouseMapper collectHouseMapper;

    /**
     * 查询房源收藏
     * 
     * @param id 房源收藏主键
     * @return 房源收藏
     */
    @Override
    public CollectHouse selectCollectHouseById(Long id)
    {
        return collectHouseMapper.selectCollectHouseById(id);
    }

    /**
     * 查询房源收藏列表
     * 
     * @param collectHouse 房源收藏
     * @return 房源收藏
     */
    @Override
    public List<CollectHouse> selectCollectHouseList(CollectHouse collectHouse)
    {
        return collectHouseMapper.selectCollectHouseList(collectHouse);
    }

    /**
     * 新增房源收藏
     * 
     * @param collectHouse 房源收藏
     * @return 结果
     */
    @Override
    public int insertCollectHouse(CollectHouse collectHouse)
    {
        return collectHouseMapper.insertCollectHouse(collectHouse);
    }

    /**
     * 修改房源收藏
     * 
     * @param collectHouse 房源收藏
     * @return 结果
     */
    @Override
    public int updateCollectHouse(CollectHouse collectHouse)
    {
        return collectHouseMapper.updateCollectHouse(collectHouse);
    }

    /**
     * 批量删除房源收藏
     * 
     * @param ids 需要删除的房源收藏主键
     * @return 结果
     */
    @Override
    public int deleteCollectHouseByIds(Long[] ids)
    {
        return collectHouseMapper.deleteCollectHouseByIds(ids);
    }

    /**
     * 删除房源收藏信息
     * 
     * @param id 房源收藏主键
     * @return 结果
     */
    @Override
    public int deleteCollectHouseById(Long id)
    {
        return collectHouseMapper.deleteCollectHouseById(id);
    }
}
